import request from '@/utils/request'

// 查询留言板列表
export function listGuestbook(query) {
  return request({
    url: '/system/guestbook/list',
    method: 'get',
    params: query
  })
}

// 查询留言板详细
export function getInfo(query) {
  return request({
    url: '/system/guestbook/getInfo',
    method: 'get',
    params: query
  })
}

// 新增留言板
export function addGuestbook(data) {
  return request({
    url: '/system/guestbook/insertGuestbook',
    method: 'post',
    data: data
  })
}

